#define _CRT_SECURE_NO_WARNINGS
//Ӧ
#include<stdio.h>
#include"errno.h"
#include<stdlib.h>

struct S
{
	int a;
	int arr[];
};







int main()
{
	struct S* ps = (struct S*)malloc(sizeof(struct S) + 40);
	if (ps == NULL)
	{
		printf("%s\n", strerror(errno));
	}
	ps->a = 100;
	int i = 0;
	for (i = 0; i < 10; i++)
	{
		ps->arr[i] = i;
	}
	for (i = 0; i < 10; i++)
	{
		printf("%d ", ps->arr[i]);
	}
	free(ps);
	ps = NULL;


	





	return 0;
}